import {HTTP} from "../util/delete-http"
class myHTTP extends HTTP {
    modelGetHotlist(sCallback) {
        this.request({
            url:"book/hot_list",
            success:(res) =>{
                sCallback(res)
            }
        })
    }
    getShortCommon(id,sCallback) {
        this.request({
            url:`book/${id}/short_comment`,
            success:(res) =>{
                sCallback(res)
            }
        })
    }
    getSearch(data,sCallback) {
        this.request({
            url:"/book/search",
            data:data,
            success:(res) =>{
                sCallback(res)
            }
            
        })
    }
}
export {myHTTP}
